package com.woniuxy.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Leimin
 * @date 2022/04/29 11:05
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="分页条件查询模型")
public class QueryEntity<T> {
    @ApiModelProperty(value="当前页码")
    private int currentPage;
    @ApiModelProperty(value="页面大小")
    private int pageSize;
    @ApiModelProperty(value="查询条件实体")
    private T entity;
    @ApiModelProperty(value="排序规则")
    private String orderSort;
    @ApiModelProperty(value="排序字段")
    private String orderKey;
}

